/**
 * ShopsService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:59
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.ShopsMapper;
import com.huamao.zh.model.SktShops;
import com.huamao.zh.service.ShopsService;

@Service
@Transactional
public class ShopsServiceImpl implements ShopsService {

	@Autowired
	private ShopsMapper shopsMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktShops add(SktShops shops) throws Exception {
		shopsMapper.add(shops);
		return shops;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktShops addSelective(SktShops shops) throws Exception {
		shopsMapper.addSelective(shops);
		return shops;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int delete(Map<String, Object> map) {
		return shopsMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int update(SktShops shops) throws Exception {
		return shopsMapper.update(shops);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int updateSelective(SktShops shops) throws Exception {
		return shopsMapper.updateSelective(shops);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktShops get(Integer shopId) {
		SktShops shops = shopsMapper.get(shopId);
		return shops;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public PageWrapper<SktShops> search(PageWrapper<SktShops> pageWrapper) {
		List<SktShops> shopss = shopsMapper.search(pageWrapper);
		pageWrapper.setList(shopss);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public List<SktShops> queryList(Map<String, Object> map) {
		return shopsMapper.queryList(map);
	}

	@Override
	public List<SktShops> getShopByLevelId(Map<String, Object> map) {
		return shopsMapper.getShopByLevelId(map);
	}
}